package extensions.android;

import extensions.packet.AbstractPacket;
import extensions.packet.MessagePacket;

public class PacketFactory {

	public static final short PACKET_MESSAGE = 1;
	
	public static AbstractPacket getPacket(short id)
	{
		switch (id)
		{
		case PACKET_MESSAGE:
			return new MessagePacket();
		}
		
		throw new IllegalArgumentException("Unknown packet for id:"+id);
	}

}
